<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="shortcut icon" href="/cwp/favicon.ico" type="image/x-icon" />
    <title>系统管理-Agent配置管理-新增Agent</title>
    <!--引入CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/list.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/btn.css" />
    <link href="../../../assets/css/styles/components-css/form.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-3.3.5-dist/css/bootstrapModel.css" />
    <!--日历控件样式-->
    <link href="../../../assets/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/taqs.css" />
    <!--表单验证样式--->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/formValidator/style/validator.css"/>
</head>
<body>

<!--头部文件 开始-->
<div id="header"></div>
<!--头部文件 结束-->


<div class="wrapper">
    <!--左侧菜单 开始-->
    <div id="left-menu"></div>
    <!--左侧菜单 结束-->

    <!--右侧内容 开始-->
    <div class="right-container">
        <div class="right-scroll">
                <div class="t-list valid">
                    <div class="t-list-title">
                        <h2>系统管理 > <a href="/cwp/src/static/SystemManagement/agentManagement/agentManagement.html?menuId=5.3">Agent配置管理</a> > 新增Agent</h2>
                    </div>
                    <form id="frmMain">
                    <div class="t-list-btns">
                        <p>Agent基本信息</p>
                        <div>
                            <a class="t-btn t-btn-blue" href="agentManagement.html?menuId=4.7">返回</a>
                            <a class="t-btn t-btn-blue" onclick="saveAgent();">保存</a>
                        </div>
                    </div>
                    <div class="t-columns-2">
                        <div class="person-setting">
                        <ul class="t-columns-group ">
                            <li>
                                <label><span class="t-tip-verification">*</span>代理名称</label>
                                <div ><input id="agentName"/></div>
                            </li>
                            <li >
                                <label><span class="t-tip-verification" >*</span>代理类型</label>
                                <div>
                                    <select id="agentType" type="number">
                                        <option value="1">门禁</option>
                                        <option value="2">楼宇</option>
                                        <option value="3">视频监控</option>
                                        <option value="4">能耗</option>
                                    </select>
                                </div>
                            </li>
                            <li class="verify">
                                <label></label>
                                  <div class="tipArea"><div id="agentNameTip"></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div></div></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*</span>代理IP</label>
                                <div><input id="ip"/></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*(整数)</span>代理编号</label>
                                <div>
                                    <input id="num" />
                                </div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div class="tipArea"><div id="ipTip"></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                 <div class="tipArea"><div id="numTip"></div></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*</span>协议类型</label>
                                <div><input id="conProtocol"/></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*(整数)</span>请求间隔</label>
                                <div><input id="contable" /></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                 <div class="tipArea"><div id="conProtocolTip"></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                 <div class="tipArea"><div id="contableTip"></div></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*</span>园区编号</label>
                                <div><input id="parkCode"/></div>
                            </li>
                            <li>
                                <label>代理描述</label>
                                <div><textarea id="description" style="height: 100px;"></textarea></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                 <div class="tipArea"><div id="parkCodeTip"></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div></div></div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div>&nbsp;</div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div id="deviceYTip"></div></div>
                            </li>
                        </ul>
                    </div>
                    </div>
                    </form>
                </div>
        </div>
    </div>
</div>

<!--版权-->
<div id="copyright"> </div>
<!--编辑页面-->

<!--模态框-->
<!--提示模态框-->
<div class="modal fade bs-example-modal-sm" id="myTip" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-body" style="text-align:center;font-size:14px;">
                <i id="icon-tip" style="margin-right:6px;"></i>
                <span class="tip-info"></span>
            </div>
        </div>
    </div>
</div>
<!--jQuery库文件-->
<!--非IE8浏览器-->
<!--[if !(IE 8)]><!--><script type="text/javascript" src="../../../assets/lib/jquery/jquery.min.js"></script><!--<![endif]-->
<!--IE8浏览器-->
<!--[if IE 8]><script type="text/javascript" src="../../../assets/lib/jquery/jquery-ie8.min.js"></script><![endif]-->
<script type="text/javascript" src="../../../assets/lib/jQuery-slimScroll-1.3.8/jquery.slimscroll.min.js"></script>
<script src="../../../assets/common/loadHeaderAndCopyright.js"></script>
<!--表单验证-->
<script src="../../../assets/lib/formValidator/formValidator.js"></script>
<script src="../../../assets/lib/formValidator/formValidatorRegex.js"></script>
<!--bootsrtap日历控件脚本-->
<script src="../../../assets/lib/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
<script src="../../../assets/lib/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script src="../../../assets/lib/bootstrap-datetimepicker-master/js/initDatetimepicker.js"></script>
<!--模态提示框-->
<script src="../../../assets/lib/bootstrap-3.3.5-dist/js/bootstrap.js"></script>
<script src="../../../assets/common/centerModal.js"></script>
<script src="../../../assets/lib/tipModal/js/tipModal.js"></script>
<!--postForm-->
<script src="../../../assets/common/ajaxPoster.js"></script>
<script src="../../../js/systemManagement/agentManagement/agentManagementNew.js"></script>
</body>
</html>